<?php
$rand_param=time();
require_once $_site->get_viewpath("boss/common/authcheck");
require_once $_site->get_viewpath("mobile/common/header");

//查询账号信息
$boss_objet=new boss();
$cols='id,account,name,email,sex,phone';
$admin_info=$boss_objet->boss_info($cols);
$head_img=array(0=>'01.png',1=>'02.png');

$num_type0=$boss_objet->_car_num($boss_id);
$num_type1=$boss_objet->_car_num($boss_id,1);
$num_type2=$boss_objet->_car_num($boss_id,2);
$num_type3=$boss_objet->_car_num($boss_id,3);
?>	
</head>

	<body>
		<div class="center-header clearfloat" id="header">
			<a href="/boss/edit?rpid=<?php echo $rand_param;?>" class="fr shezhi">设置</a>
			<div class="top fl clearfloat box-s">
				<a href="/boss/edit?rpid=<?php echo $rand_param;?>">
					<div class="tu fl">
						<span></span>
						<img src="/static/mobile/img/head/<?php echo $head_img[$admin_info['sex']];?>"/>
					</div>
					<div class="middle clearfloat fl">
						<p class="bt"><?php echo $admin_info['account'];?><span>设备老板</span></p>
						<p class="jianjie">
						    <?php echo $admin_info['name']?'姓名：'.$admin_info['name']."<br/>":''; ?>
						    <?php echo $admin_info['phone']?'电话：'.$admin_info['phone']."<br/>":''?>
							<?php echo $admin_info['email']?'邮箱：'.$admin_info['email']:''?>
						</p>
					</div>										
					<i class="iconfont icon-arrowright fr"></i>
				</a>
			</div>
			<div class="bottom clearfloat">
				<ul>
					<li style="width: 24%">
						<a href="/boss/car?rpid=<?php echo $rand_param;?>" class="clearfloat">
							<p><?php echo $num_type0;?></p>
							<p>设备总数</p>
						</a>
					</li>
					<li style="width: 24%">
						<a href="/boss/car?type=1&rpid=<?php echo $rand_param;?>" class="clearfloat">
							<p><?php echo $num_type1;?></p>
							<p>已绑定</p>
						</a>
					</li>					
					<li style="width: 24%">
						<a href="/boss/car?type=2&rpid=<?php echo $rand_param;?>" class="clearfloat">
							<p><?php echo $num_type2;?></p>
							<p>未绑定</p>
						</a>
					</li>
					<li style="width: 24%">
						<a href="/boss/car?type=3&rpid=<?php echo $rand_param;?>" class="clearfloat">
							<p><?php echo $num_type3;?></p>
							<p>待续费</p>
						</a>
					</li>					
				</ul>
			</div>
		</div>
		
				
		<div class="clearfloat pcenter" id="main">
		
			<div class="p-list p-listwo clearfloat box-s">
				<a href="/boss/report_all?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-richengbiao fl money"></i>
					<span class="fl">装车明细统计</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>		
			
			<div class="p-list p-listhree clearfloat box-s">
				<a href="/boss/report_record?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-caifu fl ben"></i>
					<span class="fl">装车数量统计</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>	
			
			<div class="p-list p-listwo clearfloat box-s">
				<a href="/boss/report_dust?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-richengbiao fl money"></i>
					<span class="fl">运输明细统计</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>	
			
			<div class="p-list p-listhree clearfloat box-s">
				<a href="/boss/report_dust_all?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-caifu fl ben"></i>
					<span class="fl">运输数量统计</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>							
							
			<div class="p-list p-listwo clearfloat box-s">
				<a href="/boss/recordall?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-favorite fl xing"></i>
					<span class="fl">全部记录</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>					

			<div class="p-list p-listwo clearfloat box-s">
				<a href="/mobile/download?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-phone fl gerenzhongxin"></i>
					<span class="fl">软件下载</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
			<div class="p-list p-listhree clearfloat box-s">
				<a href="/boss/modify?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-lock fl lock"></i>
					<span class="fl">修改密码</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
            
			<a href="javascript:;" onclick="confirmget('/handle.php?h=boss/quit','是否退出登录 ?');" class="pay-btn clearfloat">退出登录</a>			
			
		</div>	
		
	</body>
</html>